﻿@model PresentationMVC.Models.InvoiceDataModel
@using (Ajax.BeginForm("GridviewSearch", "Invoice", new AjaxOptions { UpdateTargetId = "DivGrid", InsertionMode = InsertionMode.Replace, LoadingElementId = "resultLoadingDiv" }))
{
    <table width="50%">
        <tr>
            <td>
                Created Date:
            </td>
            <td>
                From
            </td>
            <td class="editor-label" style="vertical-align: middle;">
                @Html.TextBoxFor(m => m.InvoiceSearch.FromDate, new { @class = "datepicker" })<br />
                @Html.ValidationMessageFor(m => m.FromDate)
            </td>
            <td>
                To
            </td>
            <td class="editor-label" style="vertical-align: middle;">
                @Html.TextBoxFor(m => m.InvoiceSearch.ToDate, new { @class = "datepicker" })<br />
                @Html.ValidationMessageFor(m => m.ToDate)
            </td>
        </tr>
        <tr>
            <td colspan="5">
                @Html.Partial("CustomerSearchPartial")
            </td>
        </tr>
    </table>
    
    <br />
    
}